window.addEventListener('DOMContentLoaded', () => {
  autoAdaptive();
  /* 自适应  _desginBasicFont 设计根字体大小 _desginWidth 设计宽度*/
  function autoAdaptive(e, _desginBasicFont = 100, _desginWidth = 750) {
    var adaptiveWidth = window.innerWidth; // 浏览器内容区的宽度; 
    var fontSize = (adaptiveWidth / _desginWidth) * _desginBasicFont;
    document.documentElement.style.fontSize = fontSize + 'px';
    document.body.style.fontSize = '16px';
    window.addEventListener('resize', autoAdaptive);
  }
})
